<?php

declare (strict_types = 1);

namespace app\common\enum\user\balanceLog;

use app\common\enum\EnumBasics;

/**
 * 余额变动场景枚举类
 * Class Scene
 * @package app\common\enum\user\balanceLog
 */
class Scene extends EnumBasics
{
    // 用户充值
    const RECHARGE = 10;

    // 用户消费
    const CONSUME = 20;

    // 管理员操作
    const ADMIN = 30;

    // 订单退款
    const REFUND = 40;

    // 寄售
    const ENTRUST = 50;

    // 代理分成
    const AGENT = 60;

    //公司账户扣款--游戏兑换优惠券
    const GAME = 70;

    // 用户提现
    const CASHOUT = 80;




    /**
     * 获取订单类型值
     * @return array
     */
    public static function data()
    {
        return [
            self::RECHARGE => [
                'name' => '用户充值',
                'value' => self::RECHARGE,
                'describe' => '用户充值：%s',
            ],
            self::CONSUME => [
                'name' => '用户消费',
                'value' => self::CONSUME,
                'describe' => '用户消费：%s',
            ],
            self::ADMIN => [
                'name' => '管理员操作',
                'value' => self::ADMIN,
                'describe' => '后台管理员 [%s] 操作',
            ],
            self::REFUND => [
                'name' => '订单退款',
                'value' => self::REFUND,
                'describe' => '订单退款：%s',
            ],
            self::ENTRUST => [
                'name' => '寄售',
                'value' => self::ENTRUST,
                'describe' => '寄售成功：%s',
            ],
            self::AGENT => [
                'name' => '分成',
                'value' => self::AGENT,
                'describe' => '代理分成：%s',
            ],
            self::GAME => [
                'name' => '游戏',
                'value' => self::GAME,
                'describe' => '游戏兑换优惠券：%s',
            ],
            self::CASHOUT => [
                'name' => '用户提现',
                'value' => self::CASHOUT,
                'describe' => '用户提现：%s',
            ]
        ];
    }

}